package com.thinvent.smart.chain.enums;

/**
 * 全局响应状态枚举
 *
 * @author zzb
 * @since 2021.11.17
 **/
public enum RespStatusEnum {
  /**
   * OK：操作成功
   */
  SUCCESS("0", "操作成功"),
  FAIL("-1", "操作失败"),
  NOEXIST("10","不存在"),

  ;
  RespStatusEnum(String code, String msg) {
    this.code = code;
    this.msg = msg;
  }
  /**
   * 响应状态
   */
  private String code;
  /**
   * 响应编码
   */
  private String msg;

  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public String getMsg() {
    return msg;
  }

  public void setMsg(String msg) {
    this.msg = msg;
  }
}
